import request from "request";

export function startRequest(
	url: string,
	callback?: (response: request.Response) => void
) {
	request(url, (err, response) => {
		if (err) {
			throw err;
		}
		if (callback) {
			callback(response);
		}
	});
}
